﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BlackJack.model.rules
{
    class RulesFactory
    {
        internal PlayerWinsOnSame PlayerWinsOnSame
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }

        internal DealerWinsOnSame DealerWinsOnSame
        {
            get
            {
                throw new System.NotImplementedException();
            }
            set
            {
            }
        }
    
        public IHitStrategy GetHitRule()
        {
            return new SoftHitStrategy();
        }

        public IWinRule GetWinRule(int maxScore)
        {
            return new DealerWinsOnSame(maxScore);
        }

        public INewGameStrategy GetNewGameRule()
        {
            return new AmericanNewGameStrategy();
        }
    }
}
